﻿@model ThesisSystem.Models.Student

@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>添加学生个人信息</title>
    <link href="@Url.Content("~/Content/CSS/Common.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/CSS/Account.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
</head>
<body>
    @using (Html.BeginForm("StudentCreateInfo","Account",FormMethod.Post,new { encType = "multipart/form-data" }))
    {
        @Html.ValidationSummary(true)
            <table class="tblStudentInfo">
            <tr>
                <th width="60">@Html.LabelFor(m => m.StudentID)</th>
                <td width="120">
                    @Html.EditorFor(m => m.StudentID)
                    @Html.ValidationMessageFor(model => model.StudentID)</td>
                <th width="60">@Html.LabelFor(m => m.Name)</th>
                <td width="120">@Html.EditorFor(m => m.Name)
                    @Html.ValidationMessageFor(model => model.Name)</td>
                <td rowspan="5">
                    <img id="photo" src="@Url.Content("~/Content/Images/blank.jpg")" height="120" width="90" />
                </td>
            </tr>
            <tr>
                <th>@Html.LabelFor(m => m.Sex)</th>
                <td>@Html.DropDownList("Sex",String.Empty)</td>
                <th>@Html.LabelFor(m => m.PostCard)</th>
                <td>@Html.EditorFor(m => m.PostCard)
                    @Html.ValidationMessageFor(model => model.PostCard)</td>
            </tr>
            <tr>
                <th>@Html.LabelFor(m => m.Nationality)</th>
                <td>@Html.EditorFor(m => m.Nationality)
                    @Html.ValidationMessageFor(model => model.Nationality)</td>
                <th>@Html.LabelFor(m => m.BirthPlace)</th>
                <td>@Html.EditorFor(m => m.BirthPlace)
                    @Html.ValidationMessageFor(model => model.BirthPlace)</td>
            </tr>
            <tr>
                <th>@Html.LabelFor(m => m.PoliticalLandscape)</th>
                <td>@Html.EditorFor(m => m.PoliticalLandscape)
                    @Html.ValidationMessageFor(model => model.PoliticalLandscape)</td>
                <th>@Html.LabelFor(m => m.Telephone)</th>
                <td>@Html.EditorFor(m => m.Telephone)
                    @Html.ValidationMessageFor(model => model.Telephone)</td>
            </tr>
            <tr>
                <th>@Html.LabelFor(m => m.EducationalSystem)</th>
                <td>@Html.EditorFor(m => m.EducationalSystem)
                    @Html.ValidationMessageFor(model => model.EducationalSystem)</td>
                <th>@Html.LabelFor(m => m.EducationLevel)</th>
                <td>
                    @Html.DropDownList("EducationLevel", String.Empty)
                    @Html.ValidationMessageFor(model => model.EducationLevel)</td>
            </tr>
            <tr>
                <th>论文指导教师</th>
                <td>@Html.DropDownList("TeacherUserID",string.Empty)</td>
                <th>上传照片</th>
                <td colspan="2"><input id="filePhoto" name="filePhoto" type="file" /></td>
            </tr>
            <tr>
                <th>@Html.LabelFor(m => m.AdmitProfessional)</th>
                <td>@Html.DropDownList("AdmitProfessional",String.Empty)
                    @Html.ValidationMessageFor(model => model.AdmitProfessional)</td>
                <th>@Html.LabelFor(m => m.StudyProfessional)</th>
                <td colspan="2">
                    @Html.DropDownList("StudyProfessional",String.Empty)
                    @Html.ValidationMessageFor(model => model.StudyProfessional)</td>
            </tr>
            <tr>
                <th>@Html.LabelFor(m => m.DepartmentID)</th>
                <td>
                    @Html.DropDownList("DepartmentID", String.Empty)
                    @Html.ValidationMessageFor(model => model.DepartmentID)</td>
                <th>@Html.LabelFor(m => m.ClassID)</th>
                <td colspan="2">
                    @Html.DropDownList("ClassID",String.Empty)
                    @Html.ValidationMessageFor(model => model.ClassID)</td>
            </tr>
            <tr>
                <th>@Html.LabelFor(m => m.Remark)</th>
                <td colspan="4">@Html.TextAreaFor(m => m.Remark, new { style="width:98%;height:100px;margin:4px 0;"})
                    @Html.ValidationMessageFor(model => model.Remark)</td>
            </tr>
        </table>
        <p>
            <input type="submit" value="保存" />
        </p>
    }
</body>
</html>
